package com.stormrage.entity.exam;

import java.io.Serializable;

/**
 * @Title: ExmScore.java
 * @Package com.stormrage.entity.exam
 * @Description: 学员成绩 Entity
 * @author www.stormragetech.com
 * @date 2016年4月22日
 * @version V1.0
 */
public class ExmScore implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -8239443693228012512L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer stuId;

	private Integer exam;

	private Integer oper;

	private Integer usua;

	// ------------------------------- Fields -------------------------------

	public ExmScore() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStuId() {
		return stuId;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public Integer getExam() {
		return exam;
	}

	public void setExam(Integer exam) {
		this.exam = exam;
	}

	public Integer getOper() {
		return oper;
	}

	public void setOper(Integer oper) {
		this.oper = oper;
	}

	public Integer getUsua() {
		return usua;
	}

	public void setUsua(Integer usua) {
		this.usua = usua;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmScore instance(Integer stuId) {
		ExmScore entity = new ExmScore();
		entity.setStuId(stuId);
		entity.setExam(0);
		entity.setOper(0);
		entity.setUsua(0);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " stuId - " + stuId + " exam - " + exam + " oper - " + oper
				+ " usua - " + usua;
	}

}
